{extend name="layout/layout" /}

{block name="content"}
<blockquote class="layui-elem-quote quoteBox">
    <form class="layui-form">
        <div class="layui-inline searchBox">
            <div class="layui-input-inline">
                <input type="text" class="layui-input name" name="name" placeholder="商品名称" />
            </div>
            <div class="layui-input-inline">
                <input type="text" class="layui-input bar_code" name="bar_code" placeholder="商品条码" />
            </div>

            <div class="layui-input-inline">
                <div class="layui-input-inline">
                    <input type="text" class="layui-input lay-date-range" name="range_date" style="width: 400px" placeholder="创建时间">
                </div>
            </div>
            <a class="layui-btn search_btn" data-type="reload">搜索</a>
            <button type="reset" class="layui-btn layui-btn-danger reset_btn"><i class="layui-icon">&#xe669;</i></button>
        </div>
        <!--<div class="layui-inline">
            <a class="layui-btn layui-btn-danger layui-btn-normal delAll_btn">批量删除</a>
        </div>-->
        <div class="layui-inline" style="float: right;">
            <!--<a href="{:url('admin/product/add')}" class="layui-btn layui-btn-normal add_btn">新增</a>-->
        </div>
    </form>
</blockquote>

<table id="dataTable" lay-filter="dataTable"></table>

<!--操作-->
<script type="text/html" id="handleBar">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
</script>

<input type="hidden" class="datalist_url" value="{:url('admin/'.strtolower($model).'/index')}">
<input type="hidden" class="add_url" value="{:url('admin/'.strtolower($model).'/add')}">
<input type="hidden" class="edit_url" value="{:url('admin/'.strtolower($model).'/edit')}">
<input type="hidden" class="delete_url" value="{:url('admin/'.strtolower($model).'/delete')}">
<input type="hidden" class="detail_url" value="/admin/stockfilter/detail">
{/block}

{block name="pagescript"}
<script>
    var DELETE_URL = "{:url('admin/product/delete')}";
</script>
<script src="__STATIC__/admin/pages/js/stockfilter.js" type="text/javascript"></script>
{/block}